Utility.getHitTestArguments Method

Produces an object with consistent event argument information for data control hit testing.
 

Parameters

e

Type: jQuery.Event
The event object from an event handler.
container

Type: Element
The DOM element for the control to be hit tested.
canvasService

Type: canvasService
The canvas service associated with the control to be hit tested.
Optional: True

Return Value


Type: Object
A plain object with properties:
     offsetX     [type: Number, optional: true]  - The horizontal pixel coordinate relative to the container before scaling.
     offsetY     [type: Number, optional: true]  - The vertical pixel coordinate relative to the container before scaling.
     pageX       [type: Number, optional: true]  - The horizontal pixel coordinate relative to the page after scaling.
     pageY       [type: Number, optional: true]  - The vertical pixel coordinate relative to the page after scaling.
     target      [type: Element, optional: true]  - The topmost DOM element located at the event coordinates.